<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>数据统计</title>
    <style type="text/css">
    </style>
    <jsp:include page="../../import.jsp" flush="true"/>
</head>

<body class="iframeBody">
<div class="Wrapper">
    <div>
        <div id="pageInTab" class="pageInTab">
            <div tabid="AppAnalysisTab" title="APP统计概览" lselected="true">
                <iframe frameborder="0" id="dataAnalysis" name="dataAnalysis" src="<%=path%>/mongo/appStats/toListPage.do?queryType=1"></iframe>
            </div>
            <div tabid="StoreAnalysisTab" title="经销商分析">
                <iframe frameborder="0" id="splData" name="splData" src=""></iframe>
            </div>
            <div tabid="MoreAppMessages" title="更多数据" >
            	<iframe frameborder="0" id="moreMsg" name = "moreMsg" src=""></iframe>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    var pageInTab = null;
    var pageInApp = {};
    var loadedTabs = [];
    $(function () {
        pageInTab = $("#pageInTab").ligerTab({
            height: 'auto',
            contextmenu: false,
            minIframeHeight: GET_minIframeHeight(),
            onAfterSelectTabItem: function (tabid) {
                if (loadedTabs.indexOf(tabid) < 0) {
                    loadedTabs.push(tabid);
                    if (tabid != "AppAnalysisTab") {
                        switch (tabid) {
                            case "StoreAnalysisTab":
                                pageInTab.setTabItemSrc(tabid, "<%=path%>/mongo/appStats/toListPage.do?queryType=2");
                                break;
                            case "MoreAppMessages":
                            	pageInTab.setTabItemSrc(tabid, "<%=path%>/mongo/appStats/toListPage.do?queryType=3")
                            	break ;
                        }
                    }
                }
                SetIframe_height();
            }
        });

        $.extend(true, pageInApp, {
            pageInTab: pageInTab
        });
    });


</script>

</body>
</html>
